package com.xly.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xly.entity.UserInfo;


public interface UserInfoDao extends BaseMapper<UserInfo>{

	//查询
	public List<UserInfo> queryList();
	//用户登录
	public UserInfo selectUser(@Param("phone")String phone,
								@Param("code")String code);
	//根据用户名字查询用户信息
	public UserInfo selectByUsername(@Param("username")String username);
	//根据用户名查询角色组
	public List<String> selectRolesByName(@Param("username")String username);
}
